import 'amfe-flexible'
import { createApp } from 'vue'

//手动在入口处引用vant中以函数形式提供的组件的样式，根据项目实际可注释掉部分全局引入
import 'vant/es/toast/style'  //toast
import 'vant/es/dialog/style'  //dialog
import 'vant/es/notify/style'  //notify
import 'vant/es/image-preview/style' //imagePreview
//手动在入口处引用vant中以函数形式提供的组件的样式 end
import '@/assets/styles/global.scss'
import '@/assets/iconfont/iconfont.css'

import App from './App.vue'
import {ImagePreview, Lazyload} from 'vant' //vant4的懒加载
//import { createPinia } from 'pinia'
import router from './router'
//console.log(router.getRoutes())
const app = createApp(App)
//使用pinia和router
app.use(createPinia()).use(router).use(Lazyload, {lazyComponent: true,}).use(ImagePreview).mount('#app')
